let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n13,
                    i =
                    (this && this.__extends) ||
                    ((_n13 = function n(t, e) {
                            return (_n13 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n13(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.AbsGuideAction = o.GuideActionEvent = void 0);
                var r,
                    a = t('GuideCfg'),
                    s = t('AbsObject');
                (function(t) {
                    (t.Start = 'GAEVENT_START'),
                    (t.Complete = 'GAEVENT_COMPLETE'),
                    (t.StepChanged = 'GAEVENT_STEP_CHANGED'),
                    (t.TargetChanged = 'GAEVENT_TARGET_CHANGED');
                })((r = o.GuideActionEvent || (o.GuideActionEvent = {})));
                var c = (function(t) {
                    function e() {
                        var o = t.call(this) || this;
                        return (
                            (o._alpha = e.DEFALPHA),
                            (o._alongMask = !0),
                            (o._isDestroy = !1),
                            (o._index = -1),
                            (o._curStep = null),
                            (o._steps = []),
                            o
                        );
                    }
                    return (
                        i(e, t),
                        (e.prototype.start = function(t, e) {
                            void 0 === e && (e = 0),
                                (this._guides = a.GuideCfg.ins.getGuide(t)),
                                (this._index = e - 1),
                                (this._hide = !1),
                                (this._offsetY = 0),
                                (this._offsetX = 0),
                                (this._augmentWidth = 10),
                                (this._augmentHeight = 10),
                                this.next();
                        }),
                        (e.prototype.reset = function(t) {
                            void 0 === t && (t = -1),
                                (this._index = t),
                                (this._hide = !1),
                                (this._offsetY = 0),
                                (this._offsetX = 0),
                                (this._augmentWidth = 10),
                                (this._augmentHeight = 10),
                                (this._location = cc.v2(0, 0));
                        }),
                        Object.defineProperty(e.prototype, 'guide', {
                            get: function get() {
                                return this._guide;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'hide', {
                            get: function get() {
                                return this._hide;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'offsetX', {
                            get: function get() {
                                return this._offsetX;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'offsetY', {
                            get: function get() {
                                return this._offsetY;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'augmentWidth', {
                            get: function get() {
                                return this._augmentWidth;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'augmentHeight', {
                            get: function get() {
                                return this._augmentHeight;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'location', {
                            get: function get() {
                                return this._location;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'alpha', {
                            get: function get() {
                                return this._alpha;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'tips', {
                            get: function get() {
                                return this._tips;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'candSave', {
                            get: function get() {
                                return this._candSave;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'site', {
                            get: function get() {
                                return this._site;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'index', {
                            get: function get() {
                                return this._index;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'target', {
                            get: function get() {
                                return this._target;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'to', {
                            get: function get() {
                                return this._to;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        (e.prototype.setTarget = function(t) {
                            this._target != t &&
                                ((this._target = t), this.emit(r.TargetChanged, t));
                        }),
                        (e.prototype.setTo = function(t) {
                            this._to != t && (this._to = t);
                        }),
                        (e.prototype.addStep = function(t) {
                            this._steps.push(t), null == this._curStep && (this._curStep = t);
                        }),
                        (e.prototype.update = function(t) {
                            this._curStep && this._curStep(t);
                        }),
                        (e.prototype.setGuide = function(t) {
                            this._guide = this._guides[t];
                        }),
                        (e.prototype.next = function() {
                            this._index < this._steps.length - 1 ?
                                (this._index++,
                                    (this._curStep = this._steps[this._index]),
                                    (this._guide = this._guides[this._index]),
                                    (this._offsetY = 0),
                                    (this._offsetX = 0),
                                    (this._augmentWidth = 10),
                                    (this._augmentHeight = 10),
                                    (this._location = cc.v2(0, 0)),
                                    this.setTo(null),
                                    this.setTarget(null),
                                    this.setTarget(this),
                                    this.emit(r.StepChanged, this._guide)) :
                                (this.emit(r.Complete, this._guide.id), this.destroy(!0));
                        }),
                        (e.prototype.destroy = function(e) {
                            void 0 === e && (e = !0),
                                this.isDestroy || t.prototype.destroy.call(this);
                        }),
                        (e.prototype.onDestroy = function() {
                            (this._target = null),
                            (this._isDestroy = !0),
                            (this._curStep = null),
                            t.prototype.onDestroy.call(this);
                        }),
                        Object.defineProperty(e.prototype, 'isDestroy', {
                            get: function get() {
                                return this._isDestroy;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        Object.defineProperty(e.prototype, 'alongMask', {
                            get: function get() {
                                return this._alongMask;
                            },
                            enumerable: !1,
                            configurable: !0
                        }),
                        (e.DEFALPHA = 256),
                        e
                    );
                })(s.AbsObject);
                (o.AbsGuideAction = c), console.log("end");
            module.exports =  e.exports;